<%@page import="Model.Purchase.PurchaseListView"%>
<%@page import="RssEasy.DAL.Pagination"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    PurchaseListView plv = new PurchaseListView(pageContext);
    plv.request();
    plv.select("id,shijian,name,corpname,enddt,fulladress,myid").where("state=1 and typid=1").get_page_desc("id");
%>
<!--<!DOCTYPE html>-->
<html>
    <head>
        <meta charset="utf-8"/>
        <title>企企通官网</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description" content="这里写网站内容描述" />
        <meta name="keywords" content="这里写关键词" />
        <meta name="Robots" contect="all">
        <link href="/css/reset.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/head.css" rel="stylesheet" type="text/css"/>
        <link href="/inc/footer.css" rel="stylesheet" type="text/css"/>
        <link href="/purchase/css/list.css" rel="stylesheet" type="text/css"/>
    </head>
    <body id="caigouxm">
        <%@include file="/inc/head.jsp" %> 
        <h1 class="w1000">当前位置：采购项目</h1>
        <form id="form">
            <div class="purchase_type w1000">
                <div class="line_1">
                    <h1>发布时间：</h1><span val="1">今天</span><span val="3">近三天</span><span val="7">近一周</span><span val="30">近一月</span>
                    <span val="365">近一年</span><span val="100000" class="choose" id="purchase_type1">不限</span>
                </div>
                <input type="hidden" name="times" id="times">
                <div class="line_2">
                    <h2>信息类型：</h2><span class="choose" val="1">项目公告</span><span val="2">项目结果公告</span>
                </div>
                <input type="hidden" name="state" id="state">
            </div>
<!--            <input type="hidden" name="shengid" id="shengid">
            <input type="hidden" name="shiid" id="shiid">
            <input type="hidden" name="xianid" id="xianid">-->
            <input type="hidden" name="name" id="name">
            <input type="hidden" name="curpage" id="curpage">
        </form>
        <div class="purchase_search w1000">
            <h1>筛选条件：</h1>
<!--            <div class="pagetitle">                
                <select name="shengid" id="province"><option>省</option></select>
                <select name="shiid" id="city"><option>市</option></select>
                <select name="xianid" id="county"><option>县/地区</option></select>
            </div>-->
            <input id="purchase_search" type="text" name="name" value="" placeholder="关键字查询">
            <button class="purchase_butn" type="button" name="butn">查询</button>
        </div>
        <div id="purchase_main">
            <div class="purchase_content w1000" id="purchase_content1">
                <div class="purchase_content_title">
                    <h1>最新发布</h1>
                    <h2>共有<span><%=plv.totalrows%></span>条</h2>
                </div>
                <ul>
                    <%
                        int a = plv.curpage;
                        int b = plv.totalpage;
                        while (plv.for_in_rows()) {
                    %>
                    <li>
                        <div>公告</div><a class='name' href="/purchase/details/<%=plv.get("id")%>" target="blank"><%=plv.get("name")%></a>
                        <h2>发布企业：<a class="company" href='#' target="blank"><%=plv.get("corpname")%></a></h2>
                        <h3>所在地：<span><%plv.write("fulladress");%></span></h3><h4>截止日期：<span rssdate="<%=plv.get("enddt")%>,yyyy-MM-dd hh:mm"></span></h4>
                        <h5>发布日期：<span rssdate="<%=plv.get("shijian")%>,yyyy-MM-dd"></span></h5><a class='price' href="/purchase/details/<%=plv.get("id")%>" target="blank">快捷报价</a>
                    </li>
                    <%
                        }
                    %>
                </ul>
            </div>
            <div class="purchase_content w1000" id="purchase_content2">
                <div class="purchase_content_title">
                    <h1>最新发布</h1>
                    <h2>共有<span></span>条</h2>
                </div>
                <ul></ul>
            </div>
            <div id='page_navigation' class="w1000">
                <a href="javascript:first();">首页</a><a href="javascript:previous();">上一页</a>
                <span total="<%=b%>" cur="<%=a%>"><%=a%>/<%=b%></span><a href="javascript:next();">下一页</a>
                <a href="javascript:last();">尾页</a> <input type="text" name="curpage" id="page">
                <a href="javascript:goTo();">跳转</a>
            </div>
        </div>
    </body>
    <div id="vague">
        <div>加载中...</div>
    </div>
    <%@include file="/inc/footer.jsp"%>
    <%@include file="/inc/js_all.html"%>
    <script src="/js/arealist.js" type="text/javascript"></script>
    <script src="/purchase/js/dictdata.js" type="text/javascript"></script>
    <script src="/purchase/js/list.js" type="text/javascript"></script>  
</html>
